All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.DefaultDesktopManager
java.lang.Object
|
+----com.sun.java.swing.DefaultDesktopManager
- public class DefaultDesktopManager
- extends Object
- implements DesktopManager, Serializable
This is an implementaion of the DesktopManager. It currently implements a
the basic behaviors for managing JInternanFrames in an arbitrary parent.
JInternalFrames that are not children of a JDesktop will use this component
to handle their desktop-like actions.
- See Also:
- JDesktopPane, JInternalFrame
-
DefaultDesktopManager()
-
-
activateFrame(JInternalFrame)
- Finds all the other peers of type JInternalFrames and set's their
IS_SELECTED_PROPERTY to false.
-
beginDraggingFrame(JComponent)
-
-
beginResizingFrame(JComponent, int)
-
-
closeFrame(JInternalFrame)
- Removes the frame, and if necessary the desktopIcon, from it's parent.
-
deactivateFrame(JInternalFrame)
-
-
deiconifyFrame(JInternalFrame)
- Removes the desktopIcon from it's parent and adds it's frame to the parent.
-
dragFrame(JComponent, int, int)
- Calls setBoundsForFrame() with the new values.
-
endDraggingFrame(JComponent)
-
-
endResizingFrame(JComponent)
-
-
getBoundsForIconOf(JInternalFrame)
- The iconifyFrame() code calls this to determine the proper bounds
for the desktopIcon.
-
getPreviousBounds(JInternalFrame)
-
-
iconifyFrame(JInternalFrame)
- Removes the frame from it's parent and adds it's desktopIcon to the parent.
-
maximizeFrame(JInternalFrame)
- Resizes the frame to fill it's parents bounds.
-
minimizeFrame(JInternalFrame)
- Restores the frame back to it's size and position prior to a maximizeFrame()
call.
-
openFrame(JInternalFrame)
- Normally this method will not be called.
-
removeIconFor(JInternalFrame)
- Convience method to remove the desktopIcon of f is necessary.
-
resizeFrame(JComponent, int, int, int, int)
- Calls setBoundsForFrame() with the new values.
-
setBoundsForFrame(JComponent, int, int, int, int)
- This moves the JComponent and repaints the damaged areas.
-
setPreviousBounds(JInternalFrame, Rectangle)
- Stores the bounds of the component just before a maximize call.
-
setWasIcon(JInternalFrame, Boolean)
- Sets that the component has been iconized and the bounds of the
desktopIcon are valid.
-
wasIcon(JInternalFrame)
-
DefaultDesktopManager
public DefaultDesktopManager()
openFrame
public void openFrame(JInternalFrame f)
- Normally this method will not be called. If it is, it
try to determine the appropriate parent from the desktopIcon of the frame.
Will remove the desktopIcon from it's parent if it successfully adds the frame.
closeFrame
public void closeFrame(JInternalFrame f)
- Removes the frame, and if necessary the desktopIcon, from it's parent.
maximizeFrame
public void maximizeFrame(JInternalFrame f)
- Resizes the frame to fill it's parents bounds.
minimizeFrame
public void minimizeFrame(JInternalFrame f)
- Restores the frame back to it's size and position prior to a maximizeFrame()
call.
iconifyFrame
public void iconifyFrame(JInternalFrame f)
- Removes the frame from it's parent and adds it's desktopIcon to the parent.
deiconifyFrame
public void deiconifyFrame(JInternalFrame f)
- Removes the desktopIcon from it's parent and adds it's frame to the parent.
activateFrame
public void activateFrame(JInternalFrame f)
- Finds all the other peers of type JInternalFrames and set's their
IS_SELECTED_PROPERTY to false. Also moves f to the front.
deactivateFrame
public void deactivateFrame(JInternalFrame f)
beginDraggingFrame
public void beginDraggingFrame(JComponent f)
dragFrame
public void dragFrame(JComponent f,
int newX,
int newY)
- Calls setBoundsForFrame() with the new values.
endDraggingFrame
public void endDraggingFrame(JComponent f)
beginResizingFrame
public void beginResizingFrame(JComponent f,
int direction)
resizeFrame
public void resizeFrame(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
- Calls setBoundsForFrame() with the new values.
endResizingFrame
public void endResizingFrame(JComponent f)
setBoundsForFrame
public void setBoundsForFrame(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
- This moves the JComponent and repaints the damaged areas.
removeIconFor
protected void removeIconFor(JInternalFrame f)
- Convience method to remove the desktopIcon of f is necessary.
getBoundsForIconOf
protected Rectangle getBoundsForIconOf(JInternalFrame f)
- The iconifyFrame() code calls this to determine the proper bounds
for the desktopIcon.
setPreviousBounds
protected void setPreviousBounds(JInternalFrame f,
Rectangle r)
- Stores the bounds of the component just before a maximize call.
getPreviousBounds
protected Rectangle getPreviousBounds(JInternalFrame f)
setWasIcon
protected void setWasIcon(JInternalFrame f,
Boolean value)
- Sets that the component has been iconized and the bounds of the
desktopIcon are valid.
wasIcon
protected boolean wasIcon(JInternalFrame f)
All Packages Class Hierarchy This Package Previous Next Index